// import pageScript from '@/assets/page-script.js'

import { configStore } from '@/utils/store/configStore'
import { allowWindowMessaging } from 'webext-bridge/content-script'

export default defineContentScript({
    matches: ['<all_urls>'],
    runAt: 'document_start',
    main() {
        // 先查询再插入需要保证开启了 network - diabled cache
        allowWindowMessaging('overrideFetch')
        injectScript('/overrideFetch.js', {
            keepInDom: true,
        })
    },
})
